<div class="container_frame">
	<div class="block_right">
		{ib file="blue_top.tpl" type="about2"}
	</div>
	<div class="block_left">
		{ib file="first_menu.tpl" type="menu_profile"}
	</div>
	<div class="block_center">
		<div id="reg_form" class="block_center_inner">
			<div class="warinput" id="reg_warning" style="display:none;margin-bottom:20px">
				<div class="war_lt f0">&nbsp;</div>
				<div class="war_rt f0">&nbsp;</div>
				<div class="war_cc f12"><b>Внимание!</b> Некоторые обязательные поля не были верно заполнены:<br>
					<div id="reg_warning_items">
						<div class="colum">&bull; Фамилия</div>
					</div>
				</div>
				<div class="war_lb f0">&nbsp;</div>
				<div class="war_rb f0">&nbsp;</div>
			</div>
			<div id="reg_ok" class="popup_message pm_ok warning_block" style="display:none;margin-bottom:10px">
				<div class="warning_left">
					<div class="warning_right">
						<div class="warning_inner">
							Изменения сохранены.
						</div>
					</div>
				</div>
			</div>
			{frame_begin "beige" name="редактирование анкеты" mb="4"}
				<div class="f12"><span class="purple">*</span>Поля, отмеченные звездочкой, обязательны для заполнения.</div>
				<br><br>
				<div class="lstt zag">Главное</div>
				<div class="dots f0 mp5"></div>
				<table cellpadding="0" cellspacing="0" border="0" class="info">
					<tr>
						<td width="175" align="right"><div class="input_caption" style="padding-right:20px">Имя<span class="purple">*</span>:</div></td>
						<td>{ib file="items.tpl" width="190" type="input" name="first_name" value=$user.first_name}</td>
					</tr>
					<tr>
						<td align="right"><div class="input_caption" style="padding-right:20px">Отчество:</div></td>
						<td>{ib file="items.tpl" width="190" type="input" name="second_name" value=$user.second_name}</td>
					</tr>
					<tr>
						<td align="right"><div class="input_caption" style="padding-right:20px">Фамилия<span class="purple">*</span>:</div></td>
						<td>{ib file="items.tpl" width="190" type="input" name="surname" value=$user.surname}</td>
					</tr>
				</table>
				<br>
				<div class="lstt zag">Контактная информация</div>
				<div class="dots f0 mp5"></div>
				<table cellpadding="0" cellspacing="0" border="0" class="info">
					<tr>
						<td width="175" align="right"><div class="input_caption" style="padding-right:20px">Мобильный телефон<span class="purple">*</span>:</div></td>
						<td>{ib file="items.tpl" width="190" type="phone" name="msisdn" value1=$user.msisdn1 value2=$user.msisdn2}</td>
					</tr>
					<tr>
						<td align="right"><div class="input_caption" style="padding-right:20px">Городской телефон:</div></td>
						<td>{ib file="items.tpl" width="190" type="input" name="phone" value=$user.phone}</td>
					</tr>
					<tr>
						<td align="right"><div class="input_caption" style="padding-right:20px">Электронная почта<span class="purple">*</span>:</div></td>
						<td>{ib file="items.tpl" width="190" type="input" name="email" value=$user.email}</td>
					</tr>
				</table>
				<br>
				<div class="lstt zag">о себе</div>
				<div class="dots f0 mp5"></div>
				<table cellpadding="0" cellspacing="0" border="0" class="info">
					<tr>
						<td width="175" align="right"><div class="input_caption" style="padding-right:20px">Ваш пол<span class="purple">*</span>:</div></td>
						<td>
							<div class="option_block">
								<div class="option_witem{if $user.gender==2}_s{/if}" input="gender" val="2" style="float:left;width:80px;">Женский</div>
								<div class="option_witem{if $user.gender==1}_s{/if}" input="gender" val="1" style="float:left;width:80px;">Мужской</div>
								<input type="hidden" name="gender" id="gender" value="{$user.gender}" />
							</div>
						</td>
					</tr>
					<tr>
						<td align="right"><div class="input_caption" style="padding-right:20px">Дата рождения<span class="purple">*</span>:</div></td>
						<td>
							<table class="uninfo validated_input" input="birth_date"><tr>
								<td>
									{ib file="items.tpl" width="65" type="select" items=$date_days name="birth_date_day" z_index=2000 value=$bd_day}
								</td>
								<td>
									{ib file="items.tpl" width="110" type="select" items=$date_months name="birth_date_month" z_index=1900 value=$bd_month}
								</td>
								<td>
									{ib file="items.tpl" width="70" type="select" items=$date_years name="birth_date_year" z_index=1800 value=$bd_year}
								</td>
							</tr></table>
						</td>
					</tr>
					<tr>
						<td align="right"><div class="input_caption" style="padding-right:20px">Место рождения:</div></td>
						<td>
							<table class="uninfo"><tr>
								<td>
									{ib file="items.tpl" width="100" type="select" items=$countries  name="birth_country" value="1" z_index=1700}
								</td>
								<td>
									{ib file="items.tpl" width="150" type="input" value=$user.birth_city default="Населенный пункт" name="birth_city" hide_validation=1}
								</td>
							</tr></table>
						</td>
					</tr>
					<tr>
						<td align="right"><div class="input_caption" style="padding-right:20px">Время рождения:</div></td>
						<td>
							<table class="uninfo validated_input" input="birth_time"><tr>
								<td>
									<div class="option_block">
										<div class="option_witem{if !isset($bd_hour)}_s{/if}" input="use_time" val="0" style="float:left;width:70px;">Не помню</div>
										<div class="option_witem{if isset($bd_hour)}_s{/if}" input="use_time" val="1" style="float:left;width:45px;">Помню</div>
										<input type="hidden" name="use_time" id="use_time" value="{if isset($bd_hour)}1{else}0{/if}" />
									</div>
								</td>
								<td>{ib file="items.tpl" width="35" type="input" name="birth_time_hour" hide_validation=1 length="2" value=$bd_hour}</td>
								<td> : </td>
								<td>{ib file="items.tpl" width="35" type="input" name="birth_time_minute" hide_validation=1 length="2" value=$bd_minute}</td>
							</tr></table>
						</td>
					</tr>
					<tr>
						<td align="right"><div class="input_caption" style="padding-right:20px">Место проживания:</div></td>
						<td>
							<table class="uninfo"><tr>
								<td>
									{ib file="items.tpl" width="100" type="select" items=$countries  name="country" value=$user.country z_index=1600}
								</td>
								<td>
									{ib file="items.tpl" width="150" type="input" value=$user.city default="Населенный пункт" name="city" hide_validation=1}
								</td>
							</tr></table>
						</td>
					</tr>
					<tr>
						<td align="right"><div class="input_caption" style="padding-right:20px">Профессия:</div></td>
						<td>{ib file="items.tpl" width="255" type="input" name="profession" value=$user.profession}</td>
					</tr>
					<tr>
						<td align="right"><div class="input_caption" style="padding-right:20px">Интересы:</div></td>
						<td>{ib file="items.tpl" width="255" type="input" name="interest" value=$user.interest}</td>
					</tr>
					<tr>
						<td align="right"><div class="input_caption" style="padding-right:20px">Семейный статус:</div></td>
						<td>
							<table class="uninfo"><tr>
								<td>
									{ib file="items.tpl" width="100" type="select" items=$family_statuses  name="family_status" value=$user.family_status z_index=1500}
								</td>
								<td>&nbsp;</td>
							</tr></table>
						</td>
					</tr>
					<tr>
						<td align="right" valign="top"><div class="input_caption" style="padding-right:20px">Приоритеты:<br><span class="co">(отметьте до трех)</span></div></td>
						<td>
							<div id="search_by_spec_block" class="check_block">
								{foreach $themes item}
									{if isset($mythemes[$item->id])}{assign 1 checked}{else}{assign 0 checked}{/if}
									{ib file="items.tpl" type="checkbox" name=cat("theme_", $item->id) label=$item->name value=$checked}	
								{/foreach}								
							</div>
						</td>
					</tr>
				</table>
				<br>
				<div class="dots f0 mp5"></div>
				<table width="100%">
					<tr>
						<td>&nbsp;</td>
						<td width="180" style="text-align:center">
							<div id="reg_submit" class="button_violet" style="width:180px"><a href="#" onclick="return oReg.profileSubmit()"><span class="as"></span><span class="ss">Сохранить изменения</span><span class="sa"></span></a></div>
							<div id="reg_ajax" style="display:none"><img src="/images/ajax.gif" /></div>
						</td>
					<td>&nbsp;</td>
				</table>
			{frame_end "beige" mb="4"}
		</div>
	</div>
</div>
<div class="clear"></div>